org 100h

mov cx, 5
mov bx, 6
cmp cx, bx
pushf
jg lab2

lea dx, less
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h

lab1:

inc cx
inc cx
cmp cx, bx
jg lab3

lea dx, less
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h

lab4:

cmp cx, bx
popf
jg lab5

lea dx, less
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h

lab6:

int 20h
lab2:
lea dx, greater
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h
jmp lab1

lab3:
lea dx, greater
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h
jmp lab4

lab5:
lea dx, greater
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h
jmp lab6


greater db 'cx greater than bx$'
less db 'cx not greater than bx$'
newline db 10
db 13
db '$'